<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>


<xsl:template match="forums">


<div align="left" style="padding:5px; ">
	<span style="padding-left:30px;color:black;" class="body">
	Forum totali:
	<b><xsl:value-of select="@totfa"/></b>
	</span>

	<span style="padding-left:30px;color:black;" class="body">
	Forum pubblici:
	<b><xsl:value-of select="@totfp"/></b>
	</span>
</div>

<div align="left" style="padding:5px; ">
	<span style="padding-left:30px;color:black;" class="body">
		Messaggi totali:
		<b><xsl:value-of select="@totma"/></b>
	</span>

	<span style="padding-left:30px;color:black;" class="body">
   Messaggi pubblici:
   <b><xsl:value-of select="@totmp"/></b>
   </span>
</div>

<hr/>
<div align="left" style="padding:10px;">
<xsl:choose>
	<xsl:when test="floor( @authlevel div 16 ) mod 2">
		<xsl:choose>
		<xsl:when test='@wfor&gt;0'>

		<a href="/admin/forumsAdmin.aspx?waiting4approval=1">Forums da approvare
		<span style="color:red;" class="bodyB">
		<xsl:value-of select="@wfor"/></span></a>

		</xsl:when>
		<xsl:otherwise>

		Forums da approvare <span style="color:black;" class="bodyB">
		<xsl:value-of select="@wfor"/>
		</span>

		</xsl:otherwise>
		</xsl:choose>
	</xsl:when>
	<xsl:otherwise>

		Forums da approvare <span style="color:blue;" class="bodyB"><xsl:value-of select="@wfor"/></span>

	</xsl:otherwise>
</xsl:choose>
</div>



<div align="left" style="padding:10px;">
<xsl:choose>
	<xsl:when test="floor( @authlevel div 2 ) mod 2">
		<xsl:choose>
		<xsl:when test='@totfp&gt;0'>

		<a href="/admin/forumsAdmin.aspx?allforums=1&amp;rows=999">
		Tutti i forums	<span style="color:blue;" class="bodyB"><xsl:value-of select="@totfp"/></span></a>

		</xsl:when>
		<xsl:otherwise>
		Tutti i forums	<span style="color:black;" class="bodyB">
		<xsl:value-of select="@totfp"/>
		</span>

		</xsl:otherwise>
		</xsl:choose>
	</xsl:when>
	<xsl:otherwise>
		Tutti i forums	<span style="color:#cccccc;" class="bodyB">
		<xsl:value-of select="@totfp"/></span>
	</xsl:otherwise>
</xsl:choose>

</div>


<div align="left" style="padding:10px;">
<xsl:choose>
	<xsl:when test="floor( @authlevel div 2 ) mod 2">
		<xsl:choose>
		<xsl:when test='@totmpl&gt;0'>

		<a href="/admin/forumsAdmin.aspx?lastposted=1">
		Messaggi delle ultime 12 ore	<span style="color:blue;" class="bodyB"><xsl:value-of select="@totmplu"/>&#160;</span>/ <xsl:value-of select="@totmpl"/></a>

		</xsl:when>
		<xsl:otherwise>
		Messaggi delle ultime 12 ore	<span style="color:black;" class="bodyB">
		<xsl:value-of select="@totmpl"/>
		</span>

		</xsl:otherwise>
		</xsl:choose>
	</xsl:when>
</xsl:choose>
</div>

<div align="left" style="padding:10px;">
<xsl:choose>
	<xsl:when test="floor( @authlevel div 2 ) mod 2">
		<xsl:choose>
		<xsl:when test='@totcpl&gt;0'>

		<a href="/admin/forumsAdmin.aspx?lastpostedcomments=1">
		Gallery, commenti delle ultime 12 ore	<span style="color:blue;" class="bodyB"><xsl:value-of select="@totcplu"/>&#160;</span>/ <xsl:value-of select="@totcpl"/></a>

		</xsl:when>
		<xsl:otherwise>
		Gallery, commenti delle ultime 12 ore	<span style="color:black;" class="bodyB">
		<xsl:value-of select="@totcpl"/>
		</span>

		</xsl:otherwise>
		</xsl:choose>
	</xsl:when>
</xsl:choose>
</div>

<div align="left" style="padding:10px;">
<xsl:choose>
	<xsl:when test="floor( @authlevel div 2 ) mod 2">
		<a href="/admin/keywords.aspx">
		Keywords
		</a>
	</xsl:when>
</xsl:choose>
</div>


<div align="left" style="padding:10px;">
<xsl:choose>
	<xsl:when test="floor( @authlevel div 32 ) mod 2">
		<xsl:choose>
		<xsl:when test='@totbtov&gt;0'>

		<a href="/admin/blogs.aspx">
		Blogs nuovi da votare	<span style="color:blue;" class="bodyB"><xsl:value-of select="@totbtov"/>&#160;</span></a>

		</xsl:when>
		<xsl:otherwise>
		Blogs nuovi da votare	<span style="color:black;" class="bodyB">
		<xsl:value-of select="@totbtov"/>
		</span>

		</xsl:otherwise>
		</xsl:choose>
	</xsl:when>
</xsl:choose>
</div>

</xsl:template>

</xsl:stylesheet>